package com.hsy.dormmanage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hsy.dormmanage.dao.CheckDao;
import com.hsy.dormmanage.model.Register;
import com.hsy.dormmanage.service.CheckSer;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 包名:com.hsy.dormmanage.service.impl
 * 用户:86182
 * 时间:20211118:372021/11/13
 */
@Service
public class CheckSerImpl extends ServiceImpl<CheckDao, Register> implements CheckSer {

    @Override
    public int isSuspected() {

        QueryWrapper<Register> wrapper = new QueryWrapper<>();
        wrapper.gt("body_tem",37);
        List<Register> registers = baseMapper.selectList(wrapper);
        //更改学生表中的信息。
        return registers.size();
    }
}
